import yaml
import os
from common.log import logger

env_str = os.getenv('ENV', 'local')
logger.info(f"当前环境为：{env_str}")

# 获取当前脚本所在的绝对路径
script_path = os.path.abspath(__file__)
# 获取当前脚本所在的目录路径
script_directory = os.path.dirname(script_path)
with open(f'{script_directory}/profile-{env_str}.yml', 'r') as f:
    # config = yaml.load(f, Loader=yaml.FullLoader)
    profile_ = yaml.safe_load(f)
